<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>时间线</title>
  </head>
  <body>
    <button id="btn">Try</button>
    <script>
      const arr = []
      // const oBtn = document.getElementById('btn')
      function test() {
        for (let i = 0; i < 100000; i++) {
          document.body.appendChild(document.createElement('p'))
        }
        arr.push(new Array(1000000).join('x'))
      }
      document.getElementById('btn').addEventListener('click', test)
    </script>
  </body>
</html>
